{% extends "./common/wxing.html" %}

{% block mainContent %}
<div class="article">
    <div class="container-side drop-title"><h1 class="nav-title">文章</h1>
        <div class="nav-aside">
            <ul class="side-nav">
                {% for item in wxing_data.article%}
                <li class="drop-title-item">
                    <a href="/master/article/{{item.id}}">
                        <span class="nav-title">{{item.title}}</span>
                    </a>
                </li>
                {% endfor %}
            </ul>
        </div>
    </div>
    <div class="container-main  drop-body">
        <div class="allMerchant">
            <div class="panel-head">
                <div class="yui-btns">
                    <a href="/wxing/article/new" class="btn btn-primary btn-small">添加后台模版</a>
                </div>
            </div>
            <div class="panel-content">
                <!--<ul class="yui-tab-navigator cf">-->
                    <!--<li class="yui-this"><a href="/master/permision/admin#a1" class="">文章</a></li>-->
                <!--</ul>-->
                <div class="drop-body f-pr">
                   <!--<textarea class="markdown-editor" name="markdown-edit" id="markdown"></textarea>-->
                    <div class="content-preview">
                        {{wxing_data.article[0].html|safe}}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block mainjs %}
<script src="js/basis.js"></script>
<script>
    //一般直接写在一个js文件中
    //    layui.use(['layer', 'form'], function(){
    //        var layer = layui.layer
    //                ,form = layui.form();
    //
    //        layer.msg('Hello World');
    //    });?_csrf=+getCookie("csrfToken")
</script>
{% endblock %}